約 4,065,989 件
https://w.atwiki.jp/hanmanu/pages/18.html
■Windows に JAVA_HOME を設定する手順 - 環境情報 ------------------- WindowsXP HomeEdition(SP2)のクラシックテーマでテスト - 導入手順 ------------------- ※管理権限を持たない場合、設定できないことがあります。 1.システムのプロパティ画面を開き、[環境変数]ボタンを押下します 2.環境変数画面を開き、システム環境変数の下にある[新規]ボタンを押下します 2.新しいシステム変数画面を開き、以下の値を設定したら[OK]ボタンを押下します 変数名:JAVA_HOME 変数値:インストールするフォルダを入力する (ex.C \Program files\Java\[対象となるJava環境]\bin))
https://w.atwiki.jp/ce00582/pages/3913.html
import com.sun.j3d.utils.geometry.*; import com.sun.j3d.utils.universe.*; import javax.media.j3d.*; import javax.vecmath.*; public class game0922{ public game0922() { SimpleUniverse universe = new SimpleUniverse(); BranchGroup group = new BranchGroup(); for (float x = -1.0f; x = 1.0f; x = x + 0.1f){ Sphere sphere = new Sphere(0.05f); TransformGroup tg = new TransformGroup(); Transform3D transform = new Transform3D(); Vector3f vector = new Vector3f( x, .0f, .0f); transform.setTranslation(vector); tg.setTransform(transform); tg.addChild(sphere); group.addChild(tg); } // Y axis made of cones for (float y = -1.0f; y = 1.0f; y = y + 0.1f) { TransformGroup tg = new TransformGroup(); Transform3D transform = new Transform3D(); Cone cone = new Cone(0.05f, 0.1f); Vector3f vector = new Vector3f(.0f, y, .0f); transform.setTranslation(vector); tg.setTransform(transform); tg.addChild(cone); group.addChild(tg); } // Z axis made of cylinders for (float z = -1.0f; z = 1.0f; z = z+ 0.1f){ TransformGroup tg = new TransformGroup(); Transform3D transform = new Transform3D(); Cylinder cylinder = new Cylinder(0.05f, 0.1f); Vector3f vector = new Vector3f(.0f, .0f, z); transform.setTranslation(vector); tg.setTransform(transform); tg.addChild(cylinder); group.addChild(tg); } Color3f light1Color = new Color3f(.1f, 1.4f, .1f); // green light BoundingSphere bounds = new BoundingSphere(new Point3d(0.0,0.0,0.0), 100.0); Vector3f light1Direction = new Vector3f(4.0f, -7.0f, -12.0f); DirectionalLight light1 = new DirectionalLight(light1Color, light1Direction); light1.setInfluencingBounds(bounds); group.addChild(light1); universe.getViewingPlatform().setNominalViewingTransform(); // add the group of objects to the Universe universe.addBranchGraph(group); } public static void main(String[] args) { new game0922(); } }
https://w.atwiki.jp/sevenlives/pages/717.html
完全限定名(Java) 読み:かんぜんげんていめい 英語:fully qualified name 別名:完全修飾名 意味: 完全限定名とはクラスのパッケージ名も付けて書いたクラスのフルネームのこと。 クラスを呼び込むimport宣言?のときに完全限定名で指定します。 java.utilパッケージに属するDateクラスの完全限定名は「java.util.Date」のように書かれます。 完全限定名は一意でなければならず、単純名が同じでも完全限定名が異なれば違うクラスとみなされます。 2008年10月21日 Java クラス? パッケージ? 単純名(Java)
https://w.atwiki.jp/ce00582/pages/5646.html
package json; import java.io.*; public class pro { String[] name=new String[101]; int[] age=new int[101]; int s,sx; String[] credit=new String[11]; String[] var=new String[11]; int creditnumber,datanumber; String[][] data=new String[101][10]; public static void main(String[] args) { pro test=new pro(); } pro(){ credit[1]="name"; credit[2]="age"; var[1]="string"; var[2]="num"; creditnumber=2; datanumber=30; for(s=1;s 101;s++){ name[s]="のり"; age[s]=s; } for(s=1;s 101;s++){ data[s][1]=name[s]; data[s][2]=""+age[s]; } json sub=new json(); sub.data=data; sub.datanumber=datanumber; sub.creditnumber=creditnumber; sub.credit=credit; sub.var=var; sub.makedata("ren2.json"); } } package json; import java.io.*; public class json{ String[] name=new String[101]; String str; int[] age=new int[101]; int s,sx; String[] credit=new String[101]; String[] var=new String[101]; int creditnumber,datanumber; String[][] data=new String[101][10]; String[] jdata=new String[500]; void makedata(String file){ for(s=1;s datanumber+1 ;s++){ jdata[s]=subdata(s); } writefile(file); } void writefile(String file){ int z1; try{ PrintWriter pw = new PrintWriter (new BufferedWriter(new FileWriter(file))); pw.println("["); for(s=1;s datanumber;s++){ pw.print(jdata[s]); pw.println(","); } pw.println(jdata[datanumber]); pw.println("]"); System.out.println("ファイルに書きこみました。"); pw.close(); } catch(IOException ep){ System.out.println("入出力エラーです。"); } } String subdata(int s){ String strx; int sx; strx="{"; for(sx=1;sx creditnumber;sx++){ strx=strx+credit(credit[sx]); if(var[sx].indexOf("string") -1 )strx=strx+change(data[s][sx]); if(var[sx].indexOf("num") -1 )strx=strx+data[s][sx]; strx=strx+","; } sx=creditnumber; strx=strx+credit(credit[sx]); if(var[sx].indexOf("string") -1 )strx=strx+change(data[s][sx]); if(var[sx].indexOf("num") -1 )strx=strx+data[s][sx]; strx=strx+"}"; return strx; } String credit(String str){ String strx; strx=change(str)+" "; return strx; } String change(String str){ String strx; strx="\""+str+"\""; return strx; } }
https://w.atwiki.jp/air-otaku/pages/26.html
サンプルプログラム(Java) 週間天気予報取得タグ:Java、天気予報 MapのKeyを部分一致検索し、valueを取り出すタグ:Java、部分一致、文字列検索、天気予報 [ ページの上へ ] 更新日時:2014-06-08 タグ:Java
https://w.atwiki.jp/dukejr/pages/17.html
opensource java ERP http //www.ipa.go.jp/software/open/ossc/2006/result.html#2006_kamiki 概要 Javaを用いて、主に中規模企業を対象とした、特定ベンダー環境への依存性を持たない、人事(給与、勤怠)、財務会計、業績管理(収益予実管理)、資産管理等の統合基幹業務システムを開発する。 ケイ・エヌ情報システム株式会社 http //www.knc.co.jp/
https://w.atwiki.jp/ce00582/pages/5645.html
package json; import java.io.*; public class pro { String[] name=new String[101]; String str; int[] age=new int[101]; int s,sx; String[] credit=new String[101]; String[] var=new String[101]; int creditnumber,datanumber; String[][] data=new String[101][10]; String[] jdata=new String[500]; public static void main(String[] args) { pro test=new pro(); } pro(){ credit[1]="name"; credit[2]="age"; var[1]="string"; var[2]="num"; creditnumber=2; datanumber=10; for(s=1;s 101;s++){ name[s]="のり"; age[s]=s; } for(s=1;s 101;s++){ data[s][1]=name[s]; data[s][2]=""+age[s]; } for(s=1;s datanumber+1 ;s++){ jdata[s]=subdata(s); } writefile("ren.json"); } void writefile(String file){ int z1; try{ PrintWriter pw = new PrintWriter (new BufferedWriter(new FileWriter(file))); pw.println("["); for(s=1;s datanumber;s++){ pw.print(jdata[s]); pw.println(","); } pw.println(jdata[datanumber]); pw.println("]"); System.out.println("ファイルに書きこみました。"); pw.close(); } catch(IOException ep){ System.out.println("入出力エラーです。"); } } String subdata(int s){ String strx; int sx; strx="{"; for(sx=1;sx creditnumber;sx++){ strx=strx+credit(credit[sx]); if(var[sx].indexOf("string") -1 )strx=strx+change(data[s][sx]); if(var[sx].indexOf("num") -1 )strx=strx+data[s][sx]; strx=strx+","; } sx=creditnumber; strx=strx+credit(credit[sx]); if(var[sx].indexOf("string") -1 )strx=strx+change(data[s][sx]); if(var[sx].indexOf("num") -1 )strx=strx+data[s][sx]; strx=strx+"}"; return strx; } String credit(String str){ String strx; strx=change(str)+" "; return strx; } String change(String str){ String strx; strx="\""+str+"\""; return strx; } }
https://w.atwiki.jp/keisks/pages/285.html
http //stackoverflow.com/questions/7118178/arrays-fill-with-multidimensional-array-in-java double[][] matrix = new double[20][4]; // Fill each row with 1.0 for (double[] row matrix) Arrays.fill(row, 1.0);
https://w.atwiki.jp/ce00582/pages/5216.html
JAVA DSGE (1)プログラム 過去のメモ 労働供給非弾力的 労働供給弾力的 貨幣供給一定 不確実性 ニューケインジアン (4)作業記録 7月12日 ページ作成 7月13日 プログラム追加 7月23日 JAR追加 - -
https://w.atwiki.jp/ce00582/pages/3786.html
import javax.sound.sampled.*; public class game0714 { public static void main(String[] args) throws LineUnavailableException { int rate = 44100; AudioFormat audio_format = new AudioFormat(rate, 8, 1, true, true); DataLine.Info info = new DataLine.Info( SourceDataLine.class, audio_format); SourceDataLine line = (SourceDataLine)AudioSystem.getLine(info); line.open(); line.start(); byte[] b = new byte[rate]; int i,t; t=0; for (i= 0;i rate; i++) { if(t 100)b[i]=100; if(t 99)b[i]=-100; t=t+1; if(t 200)t=0; } line.write(b,0,rate); line.drain(); // 終了まで待機 } }